Carlos Garnacho [Wed, 9 Jul 2014 14:18:05 +0000 (16:18 +0200)]
treeview: Fix horizontal position during column dragging
Code was expecting view coordinates, not widget ones, as we're
only dealing with horizontal displacements, just adding the
horizontal adjustment value suffices.
https://bugzilla.gnome.org/show_bug.cgi?id=732933
Matthias Clasen [Thu, 10 Jul 2014 01:19:09 +0000 (21:19 -0400)]
Make Adwaita the default theme across platforms
This ensures that we have a polished out-of-the-box appearance
on all platforms.
Matthias Clasen [Thu, 10 Jul 2014 01:18:18 +0000 (21:18 -0400)]
Use a define for the default icon theme name
We're using this name in two places, so match what we are doing
for the default theme name, and use a macro.
Matthias Clasen [Thu, 10 Jul 2014 01:12:08 +0000 (21:12 -0400)]
GtkIconTheme: Rename a macro
We use DEFAULT_THEME_NAME in gtksettings.c as well, and this
can be a confusing when grepping, so rename this to
FALLBACK_ICON_THEME.
Matthias Clasen [Thu, 10 Jul 2014 01:08:18 +0000 (21:08 -0400)]
GtkColorButton: Some formatting cleanups
Matthias Clasen [Thu, 10 Jul 2014 00:50:47 +0000 (20:50 -0400)]
GtkColorButton: Use a color swatch
This saves some code and lets us reuse the color swatch styling.
Among other things, this fixes a lack of discernible border when
the selected color is very similar to the background.
https://bugzilla.gnome.org/show_bug.cgi?id=680885
Matthias Clasen [Thu, 10 Jul 2014 00:44:06 +0000 (20:44 -0400)]
GtkColorSwatch: Respect an explicitly set size
This will let us use a suitably sized color swatch in the color
button.
Matthias Clasen [Wed, 9 Jul 2014 23:52:55 +0000 (19:52 -0400)]
builder test: Adjust expections
Dialogs no longer set a headerbar as titlebar unless use-header-bar
is set to 1. Update the test to do that.
Matthias Clasen [Wed, 9 Jul 2014 23:46:16 +0000 (19:46 -0400)]
app chooser: Move buttons to template
Use the new builder dialog action support.
Matthias Clasen [Wed, 9 Jul 2014 23:43:20 +0000 (19:43 -0400)]
font chooser: Move buttons to template
Use the new builder dialog action support.
Matthias Clasen [Wed, 9 Jul 2014 23:38:29 +0000 (19:38 -0400)]
a11y: Update expected output for color chooser
Matthias Clasen [Wed, 9 Jul 2014 23:39:19 +0000 (19:39 -0400)]
color chooser: Move buttons to template
We can now use the new builder action support.
Matthias Clasen [Wed, 9 Jul 2014 23:40:11 +0000 (19:40 -0400)]
GtkDialog: Fix setting of default action
The recent reshuffling caused an ordering problem where we would
hide the action area before relocating the buttons to the header
bar. But hiding makes the default button loose its defaultness.
Rearrange things so that we move the buttons before hiding the
action area, and thus preserve the default.
Lapo Calamandrei [Wed, 9 Jul 2014 17:37:41 +0000 (19:37 +0200)]
Adwaita: vertically linked buttons
Matthias Clasen [Wed, 9 Jul 2014 17:18:41 +0000 (13:18 -0400)]
gtk-demo: Fix expand button box demo
Set the spacing to 0, so the buttons are actually linked.
Stefano Facchini [Tue, 8 Jul 2014 12:12:39 +0000 (14:12 +0200)]
icontheme: Use correct URI for icons in resource paths
Fix based on a patch by Stefano Faccini,
https://bugzilla.gnome.org/show_bug.cgi?id=732894
Matthias Clasen [Wed, 9 Jul 2014 14:13:38 +0000 (10:13 -0400)]
widget-factory: Use the new application resource support
Matthias Clasen [Wed, 9 Jul 2014 12:03:57 +0000 (08:03 -0400)]
Update more places for the changed icon name
Jakub Steiner [Wed, 9 Jul 2014 11:35:25 +0000 (13:35 +0200)]
widget-factory: the menu icon name changed
Adam Dingle [Wed, 9 Jul 2014 10:37:59 +0000 (06:37 -0400)]
Require GLib 2.41.2 (for g_application_get_resource_base_path)
Allan Day [Tue, 8 Jul 2014 09:19:47 +0000 (10:19 +0100)]
message dialogs - remove extraneous padding
Removes unnecessary padding above message dialog headings. This
makes the dialogs look much more balanced.
https://bugzilla.gnome.org/show_bug.cgi?id=732857
https://bugzilla.gnome.org/show_bug.cgi?id=732882
Carlos Garnacho [Tue, 8 Jul 2014 13:35:18 +0000 (15:35 +0200)]
range: Avoid animations during slider drag
If the drag gesture gets a GtkGesture::updated signal, the user
is directly interacting through pointer/touch with the range slider,
animating the adjustment value change in this situation can produce
perceived lag, so set the value immediately when this is happening.
Carlos Garnacho [Tue, 8 Jul 2014 13:27:06 +0000 (15:27 +0200)]
textview: Fix cursor positioning oddities when scrolling through Pg Up/Down
Use the adjustment target value when repositioning the cursor, and remove the
checks that ensured the cursor was made onscreen immediately, as there will
be definitely a delay on animated adjustment changes.
Carlos Garnacho [Tue, 8 Jul 2014 13:22:24 +0000 (15:22 +0200)]
textview: Use adjustment animations in gtk_text_view_scroll_to_iter()
This makes keyboard-triggered scrolling animated, as this function is
used underneath in order to make the cursor onscreen after it is
displaced.
Carlos Garnacho [Tue, 8 Jul 2014 13:17:23 +0000 (15:17 +0200)]
textview: Use the adjustment target value to figure out if keynav failed
When moving the cursor, compare current adjustment value with the post-animation
target value, in order to avoid false "keynav failed" positives as the animation
hasn't started yet, so dx/dy are still 0 at that time.
Carlos Garnacho [Tue, 8 Jul 2014 13:13:31 +0000 (15:13 +0200)]
adjustment: Add private gtk_adjustment_get_target_value() method
This call returns either the target value if there is an ongoing animation,
or the current value if there is no animation.
Lapo Calamandrei [Tue, 8 Jul 2014 19:33:48 +0000 (21:33 +0200)]
Adwaita: minor fixes
Lapo Calamandrei [Tue, 8 Jul 2014 16:28:02 +0000 (18:28 +0200)]
Adwaita: update comments in drawings
Lapo Calamandrei [Tue, 8 Jul 2014 16:24:28 +0000 (18:24 +0200)]
Adwaita: buttons on gtkvolume popup
Lapo Calamandrei [Tue, 8 Jul 2014 14:54:00 +0000 (16:54 +0200)]
Adwaita: spinbutton button inhert in backdrop
Matthias Clasen [Tue, 8 Jul 2014 14:44:30 +0000 (10:44 -0400)]
GtkScaleButton: Add a style class to the scale button popover
Set the .scale-popup style class on the popover of scale buttons.
This lets us select the +/- buttons and style them appropriately.
Lapo Calamandrei [Tue, 8 Jul 2014 14:42:10 +0000 (16:42 +0200)]
Adwaita: remove the image effect for buttons icons in backdrop
Lapo Calamandrei [Tue, 8 Jul 2014 14:36:02 +0000 (16:36 +0200)]
Adwaita: inhert scrollbars in backdrop
Matthias Clasen [Tue, 8 Jul 2014 14:27:30 +0000 (10:27 -0400)]
GtkScaleButton: Set +/- sensitivity
The buttons should go insensitive when we are at their end of
the scale.
Matthias Clasen [Tue, 8 Jul 2014 13:29:28 +0000 (09:29 -0400)]
Add view-context-menu-symbolic to checked icon names
Matthias Clasen [Tue, 8 Jul 2014 12:35:33 +0000 (08:35 -0400)]
GtkMenuButton: Use view-context-menu-symbolic when direction is NONE
This makes it easier to construct gear menus: just set the direction
to 'none', no need to manually construct an image.
Lapo Calamandrei [Tue, 8 Jul 2014 12:35:06 +0000 (14:35 +0200)]
Adwaita: column header dnd style.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=731663
Matthias Clasen [Tue, 8 Jul 2014 12:30:42 +0000 (08:30 -0400)]
Use view-content-menu-symbolic in example apps
Matthias Clasen [Tue, 8 Jul 2014 10:53:02 +0000 (06:53 -0400)]
widget-factory: Use view-context-menu-symbolic
Lapo Calamandrei [Tue, 8 Jul 2014 10:52:25 +0000 (12:52 +0200)]
Adwaita: selection mode and selection menu tweaks
Matthias Clasen [Tue, 8 Jul 2014 10:24:34 +0000 (06:24 -0400)]
widget-factory: Content for the action dialog
Dialogs look better with some actual content.
Yosef Or Boczko [Tue, 8 Jul 2014 09:55:14 +0000 (12:55 +0300)]
Updated Hebrew translation
Lapo Calamandrei [Tue, 8 Jul 2014 09:22:59 +0000 (11:22 +0200)]
Adwaita: generalize inline and search bars
So the style get applied not only to say .toolbar.search-bar, but
.search-bar. Need to figure out something for possible missing borders.
Lapo Calamandrei [Tue, 8 Jul 2014 08:46:39 +0000 (10:46 +0200)]
Adwaita: selection menu button style fixes
Lapo Calamandrei [Tue, 8 Jul 2014 08:17:02 +0000 (10:17 +0200)]
Adwaita: fix reorderable tab label color once again
Rico Tzschichholz [Tue, 8 Jul 2014 08:12:52 +0000 (10:12 +0200)]
build: Fix make dist
Lapo Calamandrei [Tue, 8 Jul 2014 08:06:57 +0000 (10:06 +0200)]
Adwaita: style notebook tab overflow arrow
Matthias Clasen [Tue, 8 Jul 2014 02:36:56 +0000 (22:36 -0400)]
GtkImage: Add cairo surface api to the docs
https://bugzilla.gnome.org/show_bug.cgi?id=732861
Matthias Clasen [Mon, 7 Jul 2014 23:44:39 +0000 (19:44 -0400)]
Document gtk_application_get_menu_by_id
Jasper St. Pierre [Mon, 7 Jul 2014 20:20:50 +0000 (16:20 -0400)]
gtkwindow: Remove the unused GTK_WINDOW_REGION_EDGE
Matthias Clasen [Mon, 7 Jul 2014 20:27:38 +0000 (16:27 -0400)]
Bloatpad: fix up icons
The references to png files were doubly broken: first, by the icon
theme changes, and more recently, by the move of bloatpad. Fix them
up.
Piotr Drąg [Mon, 7 Jul 2014 18:50:41 +0000 (20:50 +0200)]
Updated POTFILES.skip
Ryan Lortie [Mon, 7 Jul 2014 18:36:57 +0000 (14:36 -0400)]
GtkApplication: document icon path setup
https://bugzilla.gnome.org/show_bug.cgi?id=722092
Ryan Lortie [Fri, 4 Jul 2014 13:46:57 +0000 (09:46 -0400)]
bloatpad: use Gtk's automated menu loading
We move our menus.ui file into Gtk's namespace so that it will get
picked up. Accordingly, we no longer have to do any of the work for
ourselves...
https://bugzilla.gnome.org/show_bug.cgi?id=722092
Ryan Lortie [Mon, 7 Jul 2014 18:32:10 +0000 (14:32 -0400)]
GtkAppliation: setup icon theme resource path
If we have a resource base path for the application, set up an icon
theme search path based on it (within the default icon theme).
https://bugzilla.gnome.org/show_bug.cgi?id=722092
Ryan Lortie [Fri, 4 Jul 2014 13:44:12 +0000 (09:44 -0400)]
GtkApplication: use resources for loading menus
Use the new ::resource-base-path property on #GApplication to attempt to
load the menu layout of the application.
We look first at gtk/menus-appmenu.ui or gtk/menus-traditional.ui
depending on the setting of gtk_application_prefers_app_menu(). Failing
that, we fall back to the common case of gtk/menus.ui (which should
always be given). This provides a convenient way for application
authors to provide a different set of menus, depending on the desktop
environment they find themselves in.
As is the intention with other resources, if the resource base path is
unset, nothing will be loaded. Additionally, if the expected files are not
found, it is not an error -- just nothing happens.
https://bugzilla.gnome.org/show_bug.cgi?id=722092
Matthias Clasen [Mon, 7 Jul 2014 18:33:25 +0000 (14:33 -0400)]
widget-factory: Add reorderable treeview columns
Lapo Calamandrei [Mon, 7 Jul 2014 18:32:16 +0000 (20:32 +0200)]
Adwaita: fix selection mode toolbar
Selection menu button still needs fixing
Piotr Drąg [Mon, 7 Jul 2014 18:10:10 +0000 (20:10 +0200)]
Updated POTFILES.skip
Piotr Drąg [Mon, 7 Jul 2014 18:08:04 +0000 (20:08 +0200)]
Updated POTFILES.in and POTFILES.skip
Benjamin Otte [Mon, 7 Jul 2014 18:05:56 +0000 (20:05 +0200)]
reftests: Add a reftest for 'animation-direction'
It tests the latest two commits.
Benjamin Otte [Mon, 7 Jul 2014 18:04:34 +0000 (20:04 +0200)]
cssanimation: Fix animation-direction handling
"alternate" was behaving as "alternate-reverse" and vice versa.
Benjamin Otte [Mon, 7 Jul 2014 17:44:59 +0000 (19:44 +0200)]
css: Fix animation-direction parsing
We were parsig "alternate-reverse" as "alternate" and then complaining
about the "-reverse" junk at the end of the value.
Benjamin Otte [Mon, 7 Jul 2014 17:42:59 +0000 (19:42 +0200)]
clipboard: Fix compiler warning
Cast the type.
Benjamin Otte [Mon, 7 Jul 2014 17:41:21 +0000 (19:41 +0200)]
textview: Fix compiler warning
No need to use braces anymore.
Lapo Calamandrei [Mon, 7 Jul 2014 17:51:27 +0000 (19:51 +0200)]
Adwaita: non csd message dialog and entry shadow fix
Made the non csd message dialog more similar to the csd one (to
match the csd one we need mutter theme changes), little shadow fix
for entry.
Ryan Lortie [Thu, 3 Jul 2014 00:35:49 +0000 (20:35 -0400)]
bloatpad: use resources
https://bugzilla.gnome.org/show_bug.cgi?id=722092
Ryan Lortie [Mon, 30 Jun 2014 21:13:05 +0000 (17:13 -0400)]
bloatpad: move into private subdir
Move bloatpad to ./examples/bp/ so that we can start treating it as more of a
"normal" app instead of just jamming everything into a single .c file.
We don't use the name "bloatpad" for the directory in order not to
create 'git pull' pain with the probably-already-existing executable of
the same name.
https://bugzilla.gnome.org/show_bug.cgi?id=722092
Lapo Calamandrei [Mon, 7 Jul 2014 15:56:29 +0000 (17:56 +0200)]
Adwaita: csd message dialog fixes.
Lighter shadow like popovers and bigger radius then buttons on
the background to avoid antialiasing artifacts.
Lapo Calamandrei [Mon, 7 Jul 2014 15:44:01 +0000 (17:44 +0200)]
Adwaita: .grid-child 2px padding
Lapo Calamandrei [Mon, 7 Jul 2014 15:21:52 +0000 (17:21 +0200)]
Adwaita: entry shadows work.
For the transition to work the box-shadows types in the shadow list
needs to be matched in various states so I'm using transparent shadows
istead of resetting them when not needed.
Yuri Myasoedov [Mon, 7 Jul 2014 13:05:15 +0000 (17:05 +0400)]
Updated Russian translation
Lapo Calamandrei [Mon, 7 Jul 2014 12:26:58 +0000 (14:26 +0200)]
Adwaita: minor sass changes.
Made _button_border_color($c) mixin in _button_border($c) fuction.
Benjamin Otte [Mon, 7 Jul 2014 12:25:08 +0000 (14:25 +0200)]
testsuite: Add parser test for recent fix
The test doesn't crash without the fix, but it parses the CSS
incorrectly and fails.
Benjamin Otte [Mon, 7 Jul 2014 11:09:30 +0000 (13:09 +0200)]
css: Don't special-case fill-mode in 'animation'
I have no idea why it was special cased when parsing the 'animation'
shorthand, but it caused crashes.
So remove the special case.
Lapo Calamandrei [Mon, 7 Jul 2014 12:17:51 +0000 (14:17 +0200)]
Adwaita: style .subtitle like .dim-label
Lapo Calamandrei [Mon, 7 Jul 2014 12:04:37 +0000 (14:04 +0200)]
Adwaita: use opacity on dim-labels istead of a hack
Lapo Calamandrei [Mon, 7 Jul 2014 11:30:24 +0000 (13:30 +0200)]
Adwaita: .dim-label
Jakub Steiner [Mon, 7 Jul 2014 11:26:09 +0000 (13:26 +0200)]
Adwaita: flat OSD style
Lapo Calamandrei [Mon, 7 Jul 2014 09:45:13 +0000 (11:45 +0200)]
Adwaita: fix combos and buttons padding issues.
For some strage reason (bug?) combobox buttons needs -2px vertical padding
wrt buttons to have the same size as buttons.
Matthias Clasen [Mon, 7 Jul 2014 03:10:44 +0000 (23:10 -0400)]
widget-factory: Fill out settings dialog
This gives an opportunity to use the dim-label style class.
Matthias Clasen [Sun, 6 Jul 2014 20:53:37 +0000 (16:53 -0400)]
GtkWindow: Elaborate the keybindings
Keep Ctrol-Shift-D as a straight toggle-the-inspector keybinding,
but make Ctrl-Shift-I always bring up the inspector, and point
it at the widget under the pointer.
Matthias Clasen [Sun, 6 Jul 2014 21:03:53 +0000 (17:03 -0400)]
GtkInspector: Add a function to select the widget under the pointer
Matthias Clasen [Sun, 6 Jul 2014 16:18:09 +0000 (12:18 -0400)]
GtkInspector: Add a style tab
This tab shows css properties of a widget, and their origin.
Matthias Clasen [Sun, 6 Jul 2014 16:16:26 +0000 (12:16 -0400)]
GtkCssProvider: Allow to enable debug at runtime
Add a private function that lets us decide at runtime whether to
keep css section information around - this will be useful in the
GtkInspector.
Matthias Clasen [Sun, 6 Jul 2014 20:51:29 +0000 (16:51 -0400)]
Drop a leftover declaration
This was left behind when resize grips were removed.
Matthias Clasen [Sun, 6 Jul 2014 16:16:06 +0000 (12:16 -0400)]
Trivial rearrangement
Matthias Clasen [Sun, 6 Jul 2014 22:37:29 +0000 (18:37 -0400)]
widget-factory: Avoid a crash on exit
Aurimas Černius [Sat, 5 Jul 2014 19:47:04 +0000 (22:47 +0300)]
Updated Lithuanian translation
Lapo Calamandrei [Sat, 5 Jul 2014 16:18:44 +0000 (18:18 +0200)]
Adwaita: message dialog, destructive and suggested action buttons.
...and generic linked destructive and suggested action button fix.
Lapo Calamandrei [Sat, 5 Jul 2014 14:30:43 +0000 (16:30 +0200)]
Adwaita: proper message dialog style.
Rounded bottom border added, custom style for csd versione only
[read: non csd version looks right now].
Yuri Myasoedov [Sat, 5 Jul 2014 07:10:02 +0000 (11:10 +0400)]
Updated Russian translation
Matthias Clasen [Fri, 4 Jul 2014 23:06:08 +0000 (19:06 -0400)]
GtkHeaderBar: Use defines for style classes
Matthias Clasen [Fri, 4 Jul 2014 22:13:56 +0000 (18:13 -0400)]
Add defines for title style classes
Matthias Clasen [Fri, 4 Jul 2014 20:49:55 +0000 (16:49 -0400)]
widget-factory: Add some mnemonics
Matthias Clasen [Fri, 4 Jul 2014 20:27:11 +0000 (16:27 -0400)]
widget-factory: Unset needs-attention too
This is not done automatically, so unset needs-attention when
the page becomes current.
Matthias Clasen [Fri, 4 Jul 2014 19:46:47 +0000 (15:46 -0400)]
widget-factory: show off needs-attention stack pages
When clicking 'Action' in the 'Act' dialog, we mark the third
page as needing attention a second later. This unveils that we
currently don't have any theming for needs-attention in Adwaita.
Matthias Clasen [Fri, 4 Jul 2014 06:01:53 +0000 (02:01 -0400)]
GdkScreen: Set reasonable limis for ::resolution
Otherwise, the spinbutton in the inspectors property editor
explodes in order to make room for MAXDOUBLE.
Matthias Clasen [Fri, 4 Jul 2014 05:06:31 +0000 (01:06 -0400)]
GtkScaleButton: Try harder not to pop over
When the popover does fit in the window, change the orientation
to make it fit.
Matthias Clasen [Thu, 3 Jul 2014 19:24:58 +0000 (15:24 -0400)]
Drop has-resize-grip from the notify test
The setter is not doing anything, so we won't get notification.